package com.gscitysfy.cus.drain.modules.command.service;

import com.gscitysfy.cus.drain.modules.command.dto.ResourceDispatchDto;
import com.gscitysfy.cus.drain.modules.command.dto.SendMessageRequest;
import com.gscitysfy.cus.drain.modules.command.vo.ResourceDispatchQuery;

/**
 * @Author jiang_wen
 * @Date 2022/10/21 16:38
 * @Description TODO
 */
public interface IResourceDispatchService {

    /**
     * 获取资源调度列表详情
     *
     * @param query
     * @return
     */
    ResourceDispatchDto fetchList(ResourceDispatchQuery query);


    ResourceDispatchDto fetchSchemeList(ResourceDispatchQuery query);

    /**
     * 资源调度
     *
     * @param dto
     * @param flag ture:资源调度 false:指令下发
     */
    Long save(ResourceDispatchDto dto, Boolean flag);

    Boolean sendMessage(SendMessageRequest request) throws Exception;

}
